package com.wanmait.schedule.mapper;

import com.wanmait.schedule.entity.CoursePlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.schedule.entity.Teacher;

import java.util.List;

/**
 * <p>
 * 课程计划表 Mapper 接口
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
public interface CoursePlanMapper extends BaseMapper<CoursePlan> {

    /**
     * 获得所有计划
     * 分页
     * 根据条件查询
     * @return
     */
    List<CoursePlan> findConditions();

    List<CoursePlan> findCoursePlan(Integer id);

    List<Teacher> findCourseIdByTeacher(Integer id);

    void batchInsert(List<CoursePlan> coursePlanList);

    void batchUpdate(List<Integer> delId);

}
